home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / MCASM.RAR / MC_ASM.EXE / WROX_ASM / CH12 / COMMON / PALSORT.H < prev    next >
C/C++ Source or Header  |  1994-09-24  |  421b  |  17 lines

  1. #ifndef SORT_H
  2. #define SORT_H
  3.  
  4. #include "common.h"
  5. #include "grfile.h"
  6.  
  7. typedef BOOL (less_func) (void *p1, void *p2); // is (*p1) less then (*p2) ?
  8. typedef void** ptr_array;
  9.  
  10. void quicksort(  ptr_array  ptrarr, less_func  less_fun,
  11.             int l, int r);
  12. // sorts pointers in   ptrarr (from l to r elements)
  13.  
  14. // sort palette according brightness
  15. void sort_palette_bright( BGRpalette &pal, int colors);
  16. #endif
  17.